// 事件处理程序
function addHandlers(ele, type, handlers) {
    if (ele.addEventListener) {
        ele.addEventListener(type, handlers, false);
    } else if (ele.attachEvent) {
        ele.attachEvent("on" + type, handlers);
    } else {
        ele["on" + type] = handlers;
    }
}
function removeHandlers(ele, type) {
    if (ele.removeEventListener) {
        ele.removeEventListener(type, handlers, false);
    } else if (ele.detachEvent) {
        ele.detachEvent("on" + type, handlers);
    } else {
        ele["on" + type] = null
    }
}
let EventUtil = {
    addHandlers: addHandlers,
    removeHandlers: removeHandlers
}
